<template>
	<view class="my-card app-pages">
		<view class="content">
			<view class="content-item">
				<view class="">姓名</view>
				<view class="">解景青</view>
			</view>
			<view class="content-item">
				<view class="">卡号</view>
				<view class="">132133</view>
			</view>
			<view class="content-item">
				<view class="">余额</view>
				<view class="app-pirce-color"> 222.22元</view>
			</view>
			<!-- <view class="content-btn" @click="handleRouter('/myPages/rechargeCard/index')">去充值</view> -->
			<view class="content-explain">余额说明</view>
		</view>
		
		<view class="cell">
			<view class="cell-item" @click="handleRouter('/myPages/cardInfo/index')">
				<view class="">餐卡信息</view>
				<u-icon name="arrow-right" color="rgb(144, 147, 153)" size="28rpx"></u-icon>
			</view>
			<view class="cell-item" @click="handleRouter('/myPages/rechargeLog/index')">
				<view class="">充值记录</view>
				<u-icon name="arrow-right" color="rgb(144, 147, 153)" size="28rpx"></u-icon>
			</view>
			<view class="cell-item" @click="handleRouter('/myPages/setPassword/index')">
				<view class="">设置密码</view>
				<u-icon name="arrow-right" color="rgb(144, 147, 153)" size="28rpx"></u-icon>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		name: 'MyCard',
		data() {
			return {}
		},
		methods: {
			handleRouter(url){
				uni.navigateTo({url})
			}
		},
	}
</script>
<style lang="scss" scoped>
	.my-card {
		padding-top: 80rpx;

		.cell {
			margin-top: 80rpx;
			border: 2rpx solid #f2f2f2;
			box-shadow: 0px 0px 2rpx #cccccc;
			border-radius: 16rpx;
			box-sizing: border-box;
			padding: 0 40rpx;
			.cell-item{
				display: flex;
				justify-content: space-between;
				border-bottom: 2rpx solid #f2f2f2;
				padding: 25rpx 10rpx;
				&:nth-last-child(1){
					border: none;
				}
			}
		}

		.content {
			position: relative;
			border: 2rpx solid #f2f2f2;
			box-shadow: 0px 0px 2rpx #cccccc;
			border-radius: 16rpx;
			box-sizing: border-box;
			padding: 40rpx 50rpx 30rpx 50rpx;

			.content-btn {
				position: absolute;
				border: 1px solid #f74062;
				color: #f74062;
				right: 40rpx;
				bottom: 40rpx;
				padding: 2rpx 20rpx;
				border-radius: 20rpx;
			}

			.content-explain {
				position: absolute;
				right: 30rpx;
				bottom: 50rpx;
				font-size: $uni-font-size-sm;
				color: #AAAAAA;
				border: 2rpx solid #AAAAAA;
				border-radius: 20rpx;
				padding: 2rpx 10rpx;
			}

			.content-item {
				font-size: 28rpx;
				display: flex;
				justify-content: space-between;
				width: 450rpx;
				padding: 20rpx 0;
				border-bottom: 1px solid #f2f2f2;
			}
		}
	}
</style>
